<?php echo form_tag('@admin?module=page&action=edit', array(
  'id'        => 'sf_admin_edit_form',
  'name'      => 'sf_admin_edit_form',
  'multipart' => true,
)) ?>

<?php echo object_input_hidden_tag($page, 'getId') ?>

<fieldset id="sf_fieldset_none" class="">

<div class="form-row">
  <?php echo label_for('page[handle]', __($labels['page{handle}']), 'class="required" ') ?>
  <div class="content<?php if ($sf_request->hasError('page{handle}')): ?> form-error<?php endif; ?>">
  <?php if ($sf_request->hasError('page{handle}')): ?>
    <?php echo form_error('page{handle}', array('class' => 'form-error-msg')) ?>
  <?php endif; ?>

  <?php $value = object_input_tag($page, 'getHandle', array (
  'size' => 80,
  'control_name' => 'page[handle]',
)); echo $value ? $value : '&nbsp;' ?>
    </div>
</div>

<div class="form-row">
  <?php echo label_for('page[i18n]', __($labels['page{i18n}']), '') ?>
  <div class="content<?php if ($sf_request->hasError('page{i18n}')): ?> form-error<?php endif; ?>">
  <?php if ($sf_request->hasError('page{i18n}')): ?>
    <?php echo form_error('page{i18n}', array('class' => 'form-error-msg')) ?>
  <?php endif; ?>

  <?php include_partial('i18n', array('type' => 'edit', 'page' => $page, 'languages' => $languages)); ?>
    </div>
</div>

</fieldset>

<?php include_partial('edit_actions', array('page' => $page)) ?>

</form>

<ul class="sf_admin_actions">
      <li class="float-left"><?php if ($page->getId()): ?>
<?php echo button_to(__('delete'), '@admin?module=page&action=delete&id='.$page->getId(), array (
  'post' => true,
  'confirm' => __('Are you sure?'),
  'class' => 'sf_admin_action_delete',
)) ?><?php endif; ?>
</li>
  </ul>
